import App from "./App";

// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
// main.js
import uView from "@/uni_modules/uview-ui";
Vue.use(uView);
import store from "./store";
import pageconfig from "@/mixin/config.vue"
Vue.mixin(pageconfig)
// #ifndef APP
import BaiduMap from "vue-baidu-map";
Vue.use(BaiduMap, {
	// ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
	ak: "gYgULa1jV7bufpSpfcDjeIxBrEWmhmhy",
});
// #endif
import Vconsole from 'vconsole'

if (window.location.origin.indexOf("localhost") >= 0 || window.location.origin.indexOf("fdd.gpsserver.cn") >=
	0) { // 测试和开发打开，生产不能打开
	let vConsole = new Vconsole()
	Vue.use(vConsole)
}
import AsyncComputed from "vue-async-computed";
Vue.use(AsyncComputed);

import "./z/index.js";

import i18n from "./locale/index.js"

Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
	i18n,
	store,
	...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from "vue";
export function createApp() {
	const app = createSSRApp(App);
	return {
		app,
	};
}
// #endif